package imageswipe.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author 
	 */
	public class SwipeEvent extends Event 
	{
		
		public static const ANIMATION_IN_PROGRESS:String = "animationInProgress";
		
		private var _animationInProgress:Boolean;
		
		public function SwipeEvent(type:String, animationInProgress:Boolean, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			_animationInProgress = animationInProgress;
		} 
		
		public override function clone():Event 
		{ 
			return new SwipeEvent(type, _animationInProgress, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("SwipeEvent", "animationInProgress", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get animationInProgress():Boolean 
		{
			return _animationInProgress;
		}
		
	}
	
}